package com.lsh.streamgd.beans;

public class TaskConfig {

    private String id = "";

    //数据库类型 1: mysql 2: postgres 3: oracle
    private Integer dbType = 0;

    private Integer dbConnectType = 0; //oracle jdbc连接方式 0:服务名 1：sid 2: tnsName(暂不支持)

    private String ipAddress = "";

    private String portNo = "";

    private String dbName = "";

    private String userName = "";

    private String userPwd = "";

    private String companyName = "";

    //执行频率 0: 每日0时启动(默认) 1: 每日6时启动
    private Integer excuteFreq = 0;

    //是否删除 0:否(默认) 1:是
    private Integer disabled = 0;

    //task状态 0:设为停止(默认) 1: 设为启动
    private Integer status = 1;

    //是否回溯的
    private boolean backTrackable;

    //任务描述
    private String description;

    private String whiteNameColumns = "";

    private String rootPath = "";

    private String uris = "";

    private String comments = "";

    private String maxUpdateColumnValue = "";

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getDbType() {
        return dbType;
    }

    public void setDbType(Integer dbType) {
        this.dbType = dbType;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress == null ? null : ipAddress.trim();
    }

    public String getPortNo() {
        return portNo;
    }

    public void setPortNo(String portNo) {
        this.portNo = portNo == null ? null : portNo.trim();
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName == null ? null : dbName.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd == null ? null : userPwd.trim();
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public Integer getExcuteFreq() {
        return excuteFreq;
    }

    public void setExcuteFreq(Integer excuteFreq) {
        this.excuteFreq = excuteFreq;
    }

    public Integer getDisabled() {
        return disabled;
    }

    public void setDisabled(Integer disabled) {
        this.disabled = disabled;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public boolean isBackTrackable() {
        return backTrackable;
    }

    public void setBackTrackable(boolean backTrackable) {
        this.backTrackable = backTrackable;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getWhiteNameColumns() {
        return whiteNameColumns;
    }

    public void setWhiteNameColumns(String whiteNameColumns) {
        this.whiteNameColumns = whiteNameColumns;
    }

    public String getRootPath() {
        return rootPath;
    }

    public void setRootPath(String rootPath) {
        this.rootPath = rootPath;
    }

    public String getUris() {
        return uris;
    }

    public void setUris(String uris) {
        this.uris = uris;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getMaxUpdateColumnValue() {
        return maxUpdateColumnValue;
    }

    public void setMaxUpdateColumnValue(String maxUpdateColumnValue) {
        this.maxUpdateColumnValue = maxUpdateColumnValue;
    }

    public Integer getDbConnectType() {
        return dbConnectType;
    }

    public void setDbConnectType(Integer dbConnectType) {
        this.dbConnectType = dbConnectType;
    }

    @Override
    public String toString() {
        return "TaskConfig{" +
                "id='" + id + '\'' +
                ", dbType=" + dbType +
                ", dbConnectType=" + dbConnectType +
                ", ipAddress='" + ipAddress + '\'' +
                ", portNo='" + portNo + '\'' +
                ", dbName='" + dbName + '\'' +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", companyName='" + companyName + '\'' +
                ", excuteFreq=" + excuteFreq +
                ", disabled=" + disabled +
                ", status=" + status +
                ", backTrackable=" + backTrackable +
                ", description='" + description + '\'' +
                ", whiteNameColumns='" + whiteNameColumns + '\'' +
                ", rootPath='" + rootPath + '\'' +
                ", uris='" + uris + '\'' +
                ", comments='" + comments + '\'' +
                ", maxUpdateColumnValue='" + maxUpdateColumnValue + '\'' +
                '}';
    }
}